package com.my.study.entity;

import lombok.Data;

/**
 * Table: sys_user
 */
@Data
public class User {
    /**
     * Column: id
     * Type: VARCHAR(32)
     */
    private String id;

    /**
     * Column: nickname
     * Type: VARCHAR(50)
     * Remark: 昵称
     */
    private String nickname;

    /**
     * Column: avatar
     * Type: VARCHAR(300)
     * Remark: 头像
     */
    private String avatar;

    /**
     * Column: mobile
     * Type: CHAR(11)
     * Remark: 电话号码
     */
    private String mobile;

    /**
     * Column: email
     * Type: VARCHAR(100)
     * Remark: 邮箱
     */
    private String email;

    /**
     * Column: role_id
     * Type: VARCHAR(32)
     * Remark: 角色
     */
    private String roleId;

    /**
     * Column: dept_id
     * Type: VARCHAR(32)
     * Remark: 部门ID
     */
    private String deptId;

    /**
     * Column: update_time
     * Type: VARCHAR(20)
     * Remark: 修改时间
     */
    private String updateTime;

    /**
     * Column: create_time
     * Type: VARCHAR(20)
     * Remark: 创建时间
     */
    private String createTime;

    /**
     * Column: locked
     * Type: TINYINT(3)
     * Default value: 1
     * Remark:  1有效  2无效
     */
    private Byte locked;

    /**
     * Column: deleted
     * Type: TINYINT(3)
     * Default value: 0
     * Remark: 逻辑删除 0 正常 1 删除
     */
    private Byte deleted;

    /**
     * Column: user_id
     * Type: VARCHAR(40)
     */
    private String userId;

    /**
     * 用户密码
     */
    private String password;
}